﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Pages_buy_PayFail : System.Web.UI.Page
{
    public Tuan.Model.OrderInfo orderInfo = new Tuan.Model.OrderInfo();
    protected void Page_Load(object sender, EventArgs e)
    {
        string oid = Request["oid"];
        if (Request["oid"] != null)
        {
            orderInfo = (new Tuan.BLL.OrderInfo()).GetWaitPayModel(int.Parse(oid));
            if (orderInfo == null)
            {
                Response.Write("<script type='text/javascript'>alert('该订单不能操作，可能的原因有：①该订单不存在！②该订单已经下架！③该订单已被处理');window.location='/pages/usercenter/index.aspx';</script>");
                //Pan.Common.MessageBox.ShowAndRedirect(this, "该订单不能操作，可能的原因有：①该订单不存在！②该订单已经下架！③该订单已被处理", "/pages/usercenter/index.aspx");
            }
        }
        else
        {
            Response.Write("<script type='text/javascript'>window.location='/pages/usercenter/index.aspx';</script>");
        }
    }
}
